<?php
echo $header;
echo $column_left;
echo $column_right;
$width_content = '98%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '73%';
}
?>
<div class="content" style="width:<?php echo $width_content; ?>"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a" data-inset="true">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul><br />
    <?php if ($orders) { ?>
        <ul data-role="listview" data-divider-theme="a" data-inset="true">
            <?php foreach ($orders as $order) { ?>
                <li>
                    <div class="order-list">
                        <div class="order-id"><b><?php echo $text_order_id; ?></b> #<?php echo $order['order_id']; ?></div>
                        <div class="order-status"><b><?php echo $text_status; ?></b> <?php echo $order['status']; ?></div>
                        <div class="order-content">
                            <div><b><?php echo $text_date_added; ?></b> <?php echo $order['date_added']; ?><br />
                                <b><?php echo $text_products; ?></b> <?php echo $order['products']; ?></div>
                            <div><b><?php echo $text_customer; ?></b> <?php echo $order['name']; ?><br />
                                <b><?php echo $text_total; ?></b> <?php echo $order['total']; ?></div>
                            <div class="order-info">
                                <a data-icon="search" data-role="button" href="<?php echo $order['href']; ?>" class="button"><span><?php echo $button_view; ?></span></a>
                                <a data-icon="back" data-role="button" href="<?php echo $order['reorder']; ?>" class="button"><span><?php echo $button_reorder; ?></span></a>
                            </div>
                        </div>
                    </div>
                </li>
            <?php } ?>
        </ul><br />
        <div class="pagination"><?php echo $pagination; ?></div>
    <?php } else { ?>
        <div class="content"><?php echo $text_empty; ?></div>
    <?php } ?>
    <div class="Clear"><br /></div>
    <div class="buttons">
        <div class="right"><a data-role="button" href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
    </div>
    <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>